
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from news import views
from news.views import newsListView

# router=DefaultRouter()
# router.register(r'newsList',newsListView)


urlpatterns = [
    path('newsRead/<int:news_id>/', views.NewsDetailViewSet.as_view(),name='news-read'),
    path('newslist/', views.newsListView.as_view(),name='news-list'),
    path('newscls/<int:news_classify>/', views.newscls.as_view(),name='news-cls'),

]